package mspbots.qbd.data.desktop.invoice;

import mspbots.qbd.data.desktop.customers.Customers;
import org.springframework.data.r2dbc.repository.R2dbcRepository;
import reactor.core.publisher.Mono;

public interface InvoicesRepository extends R2dbcRepository<Invoices, Long> {

    /**
     * find entity other id and tenant id
     *
     * @param otherId  other Id
     * @param tenantId tenant id
     * @return account enrity
     */
    Mono<Customers> findByOtherIdAndTenantId(String otherId, Long tenantId);
}